Release 10.1A: OpenEdge Getting Started:
WebSpeed Essentials
Moving application files to appropriate directories
After you create a working directory, move the appropriate application files into it. However, you must move some files to an appropriate Web server directory, such as the document root. This section describes the common files that you must place in appropriate directories.
Web objects and procedures
Whenever you create an executable procedure using the AppBuilder, you create a Web object. Sometimes you create Web objects that are mapped to HTML files, but this is not required to dynamically generate HTML pages. Either way, during development, you must move all of your WebSpeed procedure files (
.w,.p, or.i) into your applicationPROPATH. This ensures that the agents can find and execute your WebSpeed procedures. If you precompile all of your procedures (creating.rfiles), you can remove the source files when you actually deploy the application. For more information, see the "Compiling Web objects" section.HTML and other static files
Some of the HTML files and images that you use in your Web presentation might never be processed by WebSpeed. These HTML files serve as static HTML pages that never change throughout the life of your Web presentation. You must place these files on your Web server machine so that your Web server can serve them directly to the Web user. However, if your WebSpeed application uses HTML files to dynamically generate HTML pages, you must make the HTML files visible to the broker and agents. The easiest way to achieve this is to place them in your application working directory (the broker’s default directory) or elsewhere in the
PROPATH.Java class files
You should place Java class files in a subdirectory of the Web server root directory. Then you can reference the subdirectory in the
CODEBASEattribute of theAPPLETtag and the Java class file in theCODEattribute of theAPPLETtag.For example, if the Java class file,
myclass.class, is in a subdirectory of the Web server root directory calledjava_classes, theAPPLETtag might look like the following:
JavaScript files
You should place JavaScript (
.js) files in a subdirectory of the Web server root directory. Then you can reference the relative path in the SRC attribute of the<SCRIPT>tag.For example, if the JavaScript file,
myscript.js, is in a subdirectory of the Web server root directory calledjavascript, the<SCRIPT>tag might look like the following:
tagmap.dat
If you modify the default
tagmap.dat, place a copy of the modifiedtagmap.datinto your working directory. If you do not modify the file, you do not have to copy the file because the defaulttagmap.datis used.Offset files
An offset file (
Note: Some of the files described above are ASCII files and some are binary. Some transfer methods automatically handle the differences. Other methods require that you specify a type. When in doubt, specify binary..off) is created whenever you use the AppBuilder to map an HTML file to a Web object. Agents use the offset file information to dynamically generate an HTML page. The purpose of the offset file is to provide the location of the HTML form fields in the HTML file. You ensure that the agents can find your offset files by placing them in your working directory or in the directory with your running Web objects (or r-code). If an offset file is not current for its HTML-mapping Web object, the agent generates a new offset file from your mapped HTML file and the availabletagmap.datfile.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |